package com.icangya.DAO.impl;

import com.icangya.DAO.IAdvertImageDAO;
import com.icangya.domain.AdvertImage;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class AdvertImageDAOImpl  extends  BaseDAO<AdvertImage> implements IAdvertImageDAO{

    @Override
    public List getAdvertImg(long advertId) {
        String hql="FROM AdvertImage  ai where ai.advertId=?";
        List list= getHibernateTemplate().find(hql,advertId);
        if(list!=null)
            return list;
        return null;
    }
}
